package com.yty.dao;

import com.yty.pojo.Emp;
import com.yty.param.EmpQueryParam;
import com.yty.pojo.JobOption;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface EmpMapper {

    public List<Emp> findEmpList(EmpQueryParam param);

    public Integer addEmp(Emp emp);

    public int deleteEmpById(Integer... ids);

    public Emp findEmpById(Integer id);

    public int updateEmp(Emp emp);
    @MapKey("job")
    public List<Map<String, Object>> getEmpJobData();
    @MapKey("name")
    public List<Map<String, Object>> getEmpGenderData();
    @MapKey("name")
    List<Map<String, Object>> getStudentDegreeData();
    @MapKey("name")
    public List<Map<String, Object>> getStudentCountData();

    Emp findEmpByNameAndPassword(Emp emp);
}
